# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="v2rayA is a V2Ray client"

HOMEPAGE="https://github.com/v2rayA/v2rayA"

SRC_URI="https://github.com/v2rayA/v2rayA/releases/download/v${PV}/v2raya_linux_x64_${PV} -> ${PF}.bin"

RESTRICT="binchecks bindist mirror strip"

LICENSE="AGPL"
SLOT="0"
KEYWORDS="amd64"
S="${WORKDIR}"

RDEPEND="net-misc/xray-core"
DEPEND="${RDEPEND}"

src_unpack() {
	:
}


src_install() {
	cd ${D} || die
	mkdir -p ${D}/usr/bin || die
	cp ${DISTDIR}/${PF}.bin ${D}/usr/bin/${PN} || die
	chmod a+x ${D}/usr/bin/${PN}
}
